package be.novelfaces.showcase.webdriver.util;

import org.apache.commons.lang.StringUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public abstract class WaitForElementCleared extends Waiter {

	@Override
	public Boolean waitForCondition(WebDriver driver) {
		return StringUtils.isEmpty(driver.findElement(getBy()).getAttribute("value"));
	}

	public abstract By getBy();

}
